package com.example.speeddating.enums;

import lombok.Getter;

@Getter
public enum ResponseCodeEnum {
    CODE_1(-1,"请求失败"),
    CODE_200(200,"请求成功"),
    CODE_401(401,"访问不合法,请登录"),
    CODE_404(404,"请求地址不存在"),
    CODE_600(600,"请求参数错误"),
    CODE_601(601,"信息已经存在"),
    CODE_602(602,"登录已过期"),
    CODE_603(603,"信息不存在"),
    CODE_604(604,"账号已注销"),
    CODE_605(605,"账号已禁用"),
    CODE_500(500,"服务器处理失败,请联系管理员"),

    //图床异常处理
    IMAGE_EXIST_ERROR(1001, "服务器未接收到上传资源"),
    IMAGE_UPLOAD_ERROR(1002,"上传Gitee图床失败"),
    DEL_FILE_FAILED(1003,"图片删除失败"),
    URL_PARSE_FAILED(1004,"Gitee图片url无法解析"),

    //系统异常
    SYSTEM_ERROR(2000, "系统异常，请从控制台或日志中查看具体错误信息");

    private Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
